package qqgroupdata.process.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import qqgroupdata.process.model.QQNum;
import qqgroupdata.process.model.Qun;

import java.util.List;
import java.util.Map;

@Mapper
public interface DbDataSelectMapper {

    /**
     * 根据QQ号查询
     * 结合 selectOnlyQunInfo 使用
     */
    List<QQNum> selectQQNum(@Param("qNumDataNmae") String qNumDataNmae, @Param("qqNum") Integer qqNum);

    /**
     * 只查询群信息
     */
    Map<String, String> selectOnlyQunInfo(@Param("qinInfoTableName") String qinInfoTableName, @Param("QunNum") Integer QunNum);


    /**
     * 根据QQ群查询
     */
    List<Qun> selectQqun(@Param("groupTableName") String groupTableName, @Param("qunInfoTableName") String qunInfoTableName, @Param("qQun") Integer qQun);

}
